package com.qujia.customer.enums;

public enum RefundTypeEnum {

    WX("wx","微信支付-消费退款"),
    ZFB("zfb","支付宝支付-消费退款"),
    POS("pos","POS机支付-消费退款"),
    REF("ref","会员卡支付-充值退款"),
    DZK("dzk","会员卡支付-消费退款"),
    CDK("cdk","车队卡支付-消费退款"),
    DKQ("dkq","实体卡支付-消费退款"),
    XJ("xj","现金支付-消费退款"),
    SREF("sref","超级会员-退款"),
    DKQWXPOSREF("dkqwxposref","实体卡-移动支付充值退款"),
    MSREF("msref","秒杀退款"),
    YHK("yhk","银行卡-退款");


    private String code;

    private String msg;

    RefundTypeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public static String getRefundTypeName(String value){
        for(RefundTypeEnum refundTypeEnum : RefundTypeEnum.values()){
            if(refundTypeEnum.getCode().equals(value)){
                return refundTypeEnum.getMsg();
            }
        }
        return value;
    }
}
